package com.lanou3g.code0409.common;

/**
 * Created by dllo on 18/4/9.
 */
public class TestChar {
    public static void main(String[] args) {
        char a = 'A';
        int a1 = 65;
        char b = (char) a1;//把 65 强制类型转换成char
        int b1 = (int) 'A';
        char d = 'D';
        char e = 'E';
        char f = (char) (e + 1);// F

        System.out.println(b1);

        //特殊记忆
        for(char c='A';c<='Z';c++){
            System.out.println(c);
        }
        for(char c='a';c<='z';c++){
            System.out.println(c);
        }
        //特殊记忆

        //for (int i = 65; i < 65 + 26; i++) {
        //    char c = (char) i;
        //    System.out.println(c);

    }
}

